home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / clchat413.lha / CLChat413 / ChatBot / source / chatserver.h < prev    next >
C/C++ Source or Header  |  1995-10-25  |  508b  |  26 lines

  1. #ifndef _CL_CHATSERVER_H
  2. #define _CL_CHATSERVER_H
  3.  
  4. struct chatmsg {
  5.     struct Message m;
  6.     APTR    id;
  7.     ULONG    cmd;
  8.     char    data[á512 ];
  9. };
  10.  
  11. #define CM_LOGIN 1        // id is ServerPort, Data is Nickname
  12. #define CM_LOGOFF 2        // leave chat
  13. #define CM_DATA 3
  14. #define CM_GETUSERLIST 4
  15. #define CM_GETSERVERNAME 5
  16. #define CM_BBSMSG 6
  17. #define CM_NOTICE 7
  18.  
  19. #define CE_NICKINUSE 77    // Error NICK in Use
  20. #define CE_INVNICK 78    // Error NICK invalid
  21. #define CE_BANNED 79    // Error User banned
  22.  
  23. #define CPNAME "ChatServer.cmd"
  24.  
  25. #endif
  26.